package com.lanou.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;


/**
 * Created by dllo on 18/3/31.
 */
@Controller
public class MainController {
    @RequestMapping(value = "/frame")
    public String framePage() {
        return "frame";
    }

    @RequestMapping(value = "/frame/left1")
    public String leftPage1() {
        return "frame/left1";
    }

    @RequestMapping(value = "/frame/left")
    public String leftPage() {
        return "frame/left";
    }

    @RequestMapping(value = "/frame/control")
    public String controlPage() {
        return "frame/control";
    }

    @RequestMapping(value = "/frame/left2")
    public String leftPage2() {
        return "frame/left2";
    }

    @RequestMapping(value = "/frame/right")
    public String rightPage() {
        return "frame/right";
    }

    @RequestMapping(value = "/frame/top")
    public String topPage1() {
        return "frame/top";
    }

    //refer
    @RequestMapping(value = "/refer/showRefer")
    public String showReferPage() {
        return "refer/showRefer";
    }

    @RequestMapping(value = "/frame/refer/listRefer")
    public String listReferPage() {
        return "refer/listRefer";
    }

    @RequestMapping(value = "/refer/editRefer")
    public String editReferPage() {
        return "refer/editRefer";
    }

    @RequestMapping(value = "/refer/addStudent")
    public String addStudentPage() {
        return "refer/addStudent";
    }

    @RequestMapping(value = "/refer/addRefer")
    public String addReferPage() {
        return "refer/addRefer";
    }

    @RequestMapping(value = "/refer/addOrEditRefer")
    public String addOrEditReferPage() {
        return "refer/addOrEditRefer";
    }

    //follow
    @RequestMapping(value = "/follow/addOrEditFollow")
    public String addOrEditFollowPage(){
        return "follow/addOrEditFollow";
    }

    //student
    @RequestMapping(value = "/frame/student/listStudent")
    public String listStudentPage() {
        return "student/listStudent";
    }

    @RequestMapping(value = "/student/addOrEditStudent")
    public String addOrEditStudentPage(){
        return "student/addOrEditStudent";
    }

    @RequestMapping(value = "/student/showStudent")
    public String showStudentPage(){
        return "student/showStudent";
    }

    //station
    @RequestMapping(value = "/frame/station/listStation")
    public String listStationPage() {
        return "station/listStation";
    }

    @RequestMapping(value = "/station/editStation")
    public String editStationPage(){
        return "station/editStation";
    }

    //runoff
    @RequestMapping(value = "/frame/runoff/listRunoff")
    public String listRunoffPage() {
        return "runoff/listRunoff";
    }

    @RequestMapping(value = "runoff/addRunoff")
    public String addRunoffPage(){
        return "runoff/addRunoff";
    }

    //classesm
    @RequestMapping(value = "/frame/classesm/listClass")
    public String listClassPage() {
        return "classesm/listClass";
    }

    @RequestMapping(value = "classesm/addOrEditClass")
    public String addOrEditClassPage(){
        return "classesm/addOrEditClass";
    }

    @RequestMapping(value = "classesm/getCalssState")
    public String getCalssStatePage(){
        return "classesm/getCalssState";
    }

    @RequestMapping(value = "classesm/showClass")
    public String howClassPage(){
        return "classesm/showClass";
    }

    @RequestMapping(value = "classesm/uploa`dClass")
    public String uploadClassPage(){
        return "classesm/uploadClass";
    }

    //coursetype
    @RequestMapping(value = "/frame/coursetype/listCourse")
    public String listCoursePage() {
        return "coursetype/listCourse";
    }

    @RequestMapping(value = "/coursetype/addOrEditCourse")
    public String addOrEditCoursePage(){
        return "coursetype/addOrEditCourse";
    }

    //graduate
    @RequestMapping(value = "/frame/graduate/listGraduate")
    public String listGraduatePage() {
        return "graduate/listGraduate";
    }

    @RequestMapping(value = "/graduate/addOrEditGraduate")
    public String addOrEditGraduatePage(){
        return "graduate/addOrEditGraduate";
    }

    //department
    @RequestMapping(value = "/frame/department/listDepartment")
    public String listDepartmentPage() {
        return "department/listDepartment";
    }

    @RequestMapping(value = "/department/addOrEditDepartment")
    public String addOrEditDepartmentPage(){
        return "department/addOrEditDepartment";
    }

    //post
    @RequestMapping(value = "/frame/post/listPost")
    public String listPostPage() {
        return "post/listPost";
    }

    @RequestMapping(value = "/post/addOrEditPost")
    public String addOrEditPostPage(){
        return "post/addOrEditPost";
    }

    //staff
    @RequestMapping(value = "/frame/staff/listStaff")
    public String listStaffPage() {
        return "staff/listStaff";
    }

    @RequestMapping(value = "/staff/addStaff")
    public String addStaffPage(){
        return "staff/addStaff";
    }

    @RequestMapping(value = "/staff/editStaff")
    public String editStaffPage(){
        return "staff/editStaff";
    }

    @RequestMapping(value = "/staff/register")
    public String registerPage(){
        return "staff/register";
    }

    @RequestMapping(value = "/staff/updPwd")
    public String updPwdPage(){
        return "staff/updPwd";
    }
}
